package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.es.SkuEsModel;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient("gulimall-search")
public interface SearchFeignService {

    /**
     * 远程调用商品保存到es的接口
     *
     * @param list
     * @return
     */
    @RequestMapping(value = "/search/product")
    R productUp(@RequestBody List<SkuEsModel> list);
}
